#!/bin/bash
PID=$(ps -ef | grep sentinel-dashboard.jar | grep -v grep | awk '{ print $2 }')
if [ -z "$PID" ]
then
    nohup java -jar -Dlogging.file=logs/sentinel-dashboard.log -Dserver.port=8710 sentinel-dashboard.jar &
    echo Application start success,pid:$(ps -ef | grep sentinel-dashboard.jar | grep -v grep | awk '{ print $2 }')
else
    echo The Sentinel-dashboard Application is already running... pid:$PID
fi